﻿package cn.rayyee.ui.controls
{
	import flash.display.Shape;
	import flash.display.SimpleButton;
	import flash.display.MovieClip;
	import flash.display.Graphics;
	import flash.text.TextField;
	/**
	 * ...
	 * @author 
	 */
	public class RayButton
	{
		
		public function RayButton() 
		{
			
		}
		
		private function setLabel()
		{
			if (!this.btn_txt) {
				var btn_txt:TextField = new TextField()
				addChlid(btn_txt)
				}
			this.btn_txt.text = "test";
			this.btn_txt.mouseEnabled = false;
		}
		
		private function setShape()
		{
			if (this.btn_mc)
				return
		}
		
		private function createRect(color:uint, RectWidth:Number, RectHeight:Number):Shape
		{
			var Rect:Shape= new Shape( );
			Rect.graphics.lineStyle(1,0x000000);
			Rect.graphics.beginFill(color);
			Rect.graphics.drawRect(0,0,RectWidth,RectHeight);
			Rect.graphics.endFill( );
			return Rect;
		}
		
	}

}